#include "headfiles.h"

using namespace std;

int main() {
	MyStack<int> s;
	s.push(3);
	s.push(2);
	s.push(1);
	s.push(6);
	s.push(5);

	MyStack<int> s1 = s;

	while (!s1.empty()) {
		int val = s1.top();
		int val_min = s1.min();
		cout << "val = " << val << ", min_val = " << val_min << endl;
		s1.pop();
	}

	sortStack(s);

	s.print();

	return 0;
}

